/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cn.edu.seu.cose.hobbysharing.bean;

import java.util.Collection;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author hp-2
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "hobbylist")

public class HobbyList {
    @XmlElement(name="hobby")
    private Collection<Hobby> hobby;

    public HobbyList setHobby(Collection<Hobby> hobby) {
        this.hobby = hobby;
        return this;
    }

    public Collection<Hobby> getHobby() {
        return hobby;
    }
}
